package com.jvm123.blog.client;

import com.jvm123.blog.entity.PostVo;
import feign.Headers;
import feign.Param;
import feign.RequestLine;

import java.util.List;

/**
 * @author yawn http://jvm123.com
 * 2019/12/1 11:13
 */
public interface SearchClient {

    @RequestLine("GET /post/s/{wd}")
    List<PostVo> search(@Param("wd") String wd);

    @RequestLine("POST /post/ss/t{t}/c{c}")
//    @Headers("Content-Type: application/json")
    List<PostVo> search(@Param("t") String t, @Param("c") String c);

}
